
FROM gnrsoft/tomcat
MAINTAINER likun <lkttwan@163.com>


COPY   cas.war $APP_DIR
COPY   runhttps /scripts/
COPY   create_tomcat_https /scripts/
COPY etc/ /etc/

RUN rm -rf $JAVA_HOME/jre/lib/security/cacerts && \
	$JAVA_HOME/bin/keytool -import -noprompt -trustcacerts -alias tomcat -file /etc/cas/mycerts.cer  -keystore $JAVA_HOME/jre/lib/security/cacerts -storepass 123456    


ENTRYPOINT ["/scripts/run"]



